package com.flyco.modules.stm.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.flyco.modules.fms.vo.FmsReportVO;
import com.flyco.modules.home.vo.OrderTotalPayAmountVO;
import com.flyco.modules.oms.entity.OmsOrder;
import com.flyco.modules.oms.entity.OmsOrderInvoice;
import com.flyco.modules.oms.entity.OmsOrderItem;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Description: 订单管理
 * @Author: flyco
 * @Date:   2019-12-10
 * @Version: V1.0
 */
public interface IStmOrderService extends IService<OmsOrder> {
    public Map<String, Object> indexOrderInit();

    public List<Map<String,Object>> indexOrderBar();

    public List<Map<String,Object>> indexOrderMiniArea();

    public List<Map<String,Object>> indexOrderRank();

    public List<OrderTotalPayAmountVO> indexOrderTotalPayAmount(Date dayStart, Date dayEnd);

    Page<OmsOrder> getOrderPage(Page<OmsOrder> page, Wrapper<OmsOrder> wrapper, String productSn);

    List<FmsReportVO> getFmsReport(Date dayStart, Date dayEnd);

    public void saveMain(OmsOrder omsOrder, List<OmsOrderItem> omsOrderItemList, List<OmsOrderInvoice> omsOrderInvoiceList) ;
}
